package com.ruoyi.SSL.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;
import java.util.List;

/**
 * 托管服务器对象 ssl_trusteeship_service
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public class SslTrusteeshipService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 托管Id */
    private Long id;

    /** 托管服务器名称 */

    private  String serIp;
    @Excel(name = "托管服务器名称")
    private String serName;

    /** 托管证书文件夹 */
    @Excel(name = "托管证书文件夹")
    private String sslDir;

    //服务器下所有域名 用作查询树状结构时作为子级赋值域名列表
    private List<SslDomain> domainList;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    private String code;

    private String runShellScript;  //shell执行脚本

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastCheckDate;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setSerName(String serName)
    {
        this.serName = serName;
    }

    public String getSerName()
    {
        return serName;
    }

    public void setSslDir(String sslDir)
    {
        this.sslDir = sslDir;
    }

    public String getSslDir()
    {
        return sslDir;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public List<SslDomain> getDomainList() {
        return domainList;
    }

    public void setDomainList(List<SslDomain> domainList) {
        this.domainList = domainList;
    }

    public String getRunShellScript() {
        return runShellScript;
    }

    public void setRunShellScript(String runShellScript) {
        this.runShellScript = runShellScript;
    }

    public String getSerIp() {
        return serIp;
    }

    public void setSerIp(String serIp) {
        this.serIp = serIp;
    }

    public Date getLastCheckDate() {
        return lastCheckDate;
    }

    public void setLastCheckDate(Date lastCheckDate) {
        this.lastCheckDate = lastCheckDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId()).append("code", getCode())
            .append("serName", getSerName()).append("serIp", getSerIp())
            .append("sslDir", getSslDir()).append("lastCheckDate", getLastCheckDate())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
